package com.wq.wrongquestion.mapper.his;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.wq.wrongquestion.entity.his.HistoryEntity;



/**
 * 历史
 */
@Mapper
public interface HistoryMapper {
     
    @Select("select zjnm from m_historyzj where zjid=#{zjID}")
    public String getHistoryZjnm(String zjID);
    

    @Select("select zjID from m_historyzj")
    public List<String>  getHistoryZjID();
    /**
     * 获取所有章节
     * @return
     */

    public List<String>  getHistoryZj();

    public List<HistoryEntity> getHistory(HistoryEntity historyEntity);


    public List<HistoryEntity> getHistoryByID(Integer id);
    /**
     * 插入错题 
     */

    public void insHistory(HistoryEntity historyEntity);
    /**
     * 更新错题
     * @param historyEntity
     */
    public Integer updHistory(HistoryEntity historyEntity);
    /**
     * 删除错题
     * 
     */
    public Integer delHistory(Integer id); 
}
